#include"Light.h"

void Light_Init(){
    GPIO_INIT();
    Light_off(ALL);
}

void Light_on(Light light)
{
    if (light == ALL)
    {
       LED_LEFT = 1;
       LED_RIGHT = 1; 
    }
    else if (light == LEFT)
    {
        LED_LEFT = 1;
    }
    else if (light == RIGHT)
    {
        LED_RIGHT = 1;
    }   
    

}

void Light_off(Light light)
{
        if (light == ALL)
    {
       LED_LEFT = 0;
       LED_RIGHT = 0; 
    }
    else if (light == LEFT)
    {
        LED_LEFT = 0;
    }
    else if (light == RIGHT)
    {
        LED_RIGHT = 0;
    }   
    


}